
import java.util.Comparator;
import java.util.PriorityQueue;


public class NonPreemptiveSimulator extends Simulation {
	public NonPreemptiveSimulator(int num_processes, int times_processes) {
		super(num_processes, times_processes, 
				new PriorityQueue<ProcessNode>(num_processes, new Comparator<ProcessNode>() {
					public int compare(ProcessNode a, ProcessNode b){
						if(a.getServiceTime() < b.getServiceTime()) return -1;
						else if(a.getServiceTime() > b.getServiceTime()) return 1;
						else return 0;
					}}));
	}
	public boolean interuptProcessSwitchConditions()
	{
		//No Special Switch Conditions
		//Process will switch when finished
		return false;
	}
}